package org.zuel.Luce.service;

import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.lucene.search.highlight.InvalidTokenOffsetsException;
import org.springframework.stereotype.Service;
import org.zuel.Luce.model.TextTable;

import java.io.IOException;


public interface ILuceService {
    Object createIndex()throws IOException;

    Object updateIndex()throws IOException;

    Object updateOne(TextTable textTable)throws IOException;

    Object add();

    Object search(String seach) throws IOException, ParseException, InvalidTokenOffsetsException;

    Object delete();
}
